import com.itheima.domain.Account;
import com.itheima.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {





        ApplicationContext applicationContest = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService accountServiceImpl = (AccountService) applicationContest.getBean("accountService");
        Account account = accountServiceImpl.findById("1");
        System.out.println(account);
    }

}
